﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="AgriMarketWebProj.AgriMarketService" %>
<%@ Import Namespace="AgriMarketWebProj.Models" %>
<%@ Import Namespace="System.Web.Script.Serialization" %>
<script src="../../Scripts/AgriProj/Auction/FollowedAuction.js" type="text/javascript"></script>
<%
    List<FollowedAuction> followedAuctionsList = Model;
    foreach (var followedAuction in followedAuctionsList)
    {
        Response.Write("<div id='followedAuctionItem"+followedAuction.Id+"' class='followAuctionItem'>");
        Response.Write("<img  class='followedAuctionItemImage' src='"+ServiceURL.ServicePath+followedAuction.ProductImage+"'>");
        Response.Write("<a  class='followAuctionItemLink' href='/Auction/ViewAuctionDetails?auctionId="+followedAuction.AuctionId+"' id='followedAuctionItemLink" + followedAuction.Id + "' name='followedAuctionItemLink" + followedAuction.Id + "'>" + followedAuction.Topic + "</a>");
        Response.Write("<input class='followAuctionItemInput'  type='image' id='followedAuctionItemInput" + followedAuction.Id + "' name='followedAuctionItemInput" + followedAuction.Id + "' value='" + followedAuction.Id + "' src='../../Content/Images/stop32.png' onclick='deleteFollowedAuction(" + followedAuction.Id + ");'></input>");
        Response.Write("</div>");
    }
     %>

